package com.hyt.it.ogt.kq.service.bm.model.param;

import com.hyt.core.ModelSerializable;
import com.hyt.core.validate.Insert;
import com.hyt.core.validate.Update;
import com.hyt.it.ogt.kq.service.bm.model.vo.ProjectNodeVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * <p>
 * 报名节点参数
 * </p>
 *
 * @author wangt
 * @since 2020-05-15
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "ProjectNodeParam对象", description = "报名节点参数")
public class ProjectNodeParam implements ModelSerializable {

    @NotBlank(message = "报名项目ID不能为空", groups = {Insert.class, Update.class})
    @ApiModelProperty(value = "报名项目ID")
    private String projectId;

    @Size(min = 6, message = "报名节点缺失", groups = {Insert.class, Update.class})
    @Valid
    @ApiModelProperty(value = "报名节点")
    private List<ProjectNodeVo> nodeList;
}
